/** @format */

import { defineComponent, h } from 'vue'
import { useForm } from '@/form-pro/hooks/form-pro'
const { theSchemaValue } = useForm()

export default defineComponent({
  props: ['compInfo', 'slotName'],
  setup(props) {
    const theName = props.slotName || 'guoguoui-default-slot'
    return () => props.compInfo![theName]({ model: theSchemaValue.value })
  },
})
